/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tv.venta.modelo;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 *
 * @author Claudio
 */
@Embeddable
public class AplicacionCuentaCorrientePK implements Serializable {
    @Basic(optional = false)
    @Column(name = "VTRMVC_MODFOR", nullable = false, length = 2)
    private String modfor;
    @Basic(optional = false)
    @Column(name = "VTRMVC_CODFOR", nullable = false, length = 6)
    private String codfor;
    @Basic(optional = false)
    @Column(name = "VTRMVC_NROFOR", nullable = false)
    private int nrofor;
    @Basic(optional = false)
    @Column(name = "VTRMVC_MODAPL", nullable = false, length = 2)
    private String modapl;
    @Basic(optional = false)
    @Column(name = "VTRMVC_CODAPL", nullable = false, length = 6)
    private String codapl;
    @Basic(optional = false)
    @Column(name = "VTRMVC_NROAPL", nullable = false)
    private int nroapl;
    @Basic(optional = false)
    @Column(name = "VTRMVC_CUOTAS", nullable = false)
    private short cuotas;
    @Basic(optional = false)
    @Column(name = "VTRMVC_CLAMOV", nullable = false, length = 20)
    private String clamov;

    public AplicacionCuentaCorrientePK() {
    }

    public AplicacionCuentaCorrientePK(String vtrmvcModfor, String vtrmvcCodfor, int vtrmvcNrofor, String vtrmvcModapl, String vtrmvcCodapl, int vtrmvcNroapl, short vtrmvcCuotas, String vtrmvcClamov) {
        this.modfor = vtrmvcModfor;
        this.codfor = vtrmvcCodfor;
        this.nrofor = vtrmvcNrofor;
        this.modapl = vtrmvcModapl;
        this.codapl = vtrmvcCodapl;
        this.nroapl = vtrmvcNroapl;
        this.cuotas = vtrmvcCuotas;
        this.clamov = vtrmvcClamov;
    }

    public String getClamov() {
        return clamov;
    }

    public void setClamov(String clamov) {
        this.clamov = clamov;
    }

    public String getCodapl() {
        return codapl;
    }

    public void setCodapl(String codapl) {
        this.codapl = codapl;
    }

    public String getCodfor() {
        return codfor;
    }

    public void setCodfor(String codfor) {
        this.codfor = codfor;
    }

    public short getCuotas() {
        return cuotas;
    }

    public void setCuotas(short cuotas) {
        this.cuotas = cuotas;
    }

    public String getModapl() {
        return modapl;
    }

    public void setModapl(String modapl) {
        this.modapl = modapl;
    }

    public String getModfor() {
        return modfor;
    }

    public void setModfor(String modfor) {
        this.modfor = modfor;
    }

    public int getNroapl() {
        return nroapl;
    }

    public void setNroapl(int nroapl) {
        this.nroapl = nroapl;
    }

    public int getNrofor() {
        return nrofor;
    }

    public void setNrofor(int nrofor) {
        this.nrofor = nrofor;
    }

    

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (modfor != null ? codfor.hashCode() : 0);
        hash += (codfor != null ? codfor.hashCode() : 0);
        hash += (int) nrofor;
        hash += (modapl != null ? modapl.hashCode() : 0);
        hash += (codapl != null ? codapl.hashCode() : 0);
        hash += (int) nroapl;
        hash += (int) cuotas;
        hash += (clamov != null ? clamov.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof AplicacionCuentaCorrientePK)) {
            return false;
        }
        AplicacionCuentaCorrientePK other = (AplicacionCuentaCorrientePK) object;
        if ((this.modfor == null && other.modfor != null) || (this.modfor != null && !this.modfor.equals(other.modfor))) {
            return false;
        }
        if ((this.codfor == null && other.codfor != null) || (this.codfor != null && !this.codfor.equals(other.codfor))) {
            return false;
        }
        if (this.nrofor != other.nrofor) {
            return false;
        }
        if ((this.modapl == null && other.modapl != null) || (this.modapl != null && !this.modapl.equals(other.modapl))) {
            return false;
        }
        if ((this.codapl == null && other.codapl != null) || (this.codapl != null && !this.codapl.equals(other.codapl))) {
            return false;
        }
        if (this.nroapl != other.nroapl) {
            return false;
        }
        if (this.cuotas != other.cuotas) {
            return false;
        }
        if ((this.clamov == null && other.clamov != null) || (this.clamov != null && !this.clamov.equals(other.clamov))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "tv.venta.modelo.AplicacionCuentaCorrientePK[vtrmvcModfor=" + modfor + ", vtrmvcCodfor=" + codfor + ", vtrmvcNrofor=" + nrofor + ", vtrmvcModapl=" + modapl + ", vtrmvcCodapl=" + codapl + ", vtrmvcNroapl=" + nroapl + ", vtrmvcCuotas=" + cuotas + ", vtrmvcClamov=" + clamov + "]";
    }

}
